<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.js"></script>
</head>

<body>
    <button id='post'>提交</button>
    <script>
        $(function () {
            $("#post").on('click', function () {
                $.post('http://www.liulongbin.top:3006/api/addboo', { bookname: '水浒传', author: '施耐庵', publisher: '天津图书出版社' }, function (res) {
                    console.log(res); //这里是res向服务器提交的数据
                })
            })
        })
    </script>
</body>

</html>